﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WpfSnqkGasAnalysis.Model;

namespace WpfSnqkGasAnalysis.IData
{
    /// <summary>
    /// 登录日志，数据接口
    /// </summary>
    public interface ILogin_logDAL
    {
        /// <summary>
        /// 添加登录日志
        /// </summary>
        /// <param name="user">登录用户</param>
        /// <param name="stat">1=成功，0=失败</param>
        /// <param name="reamark">描述</param>
        /// 创建时间：2022-11-23 10:37:11。作者：王浩力
        void AddLoginLog(Login_user user, byte stat, string reamark);

        /// <summary>
        /// 分页，登录日志
        /// </summary>
        /// <typeparam name="Login_log"></typeparam>
        /// <param name="login_log"></param>
        /// <param name="p">当前页码</param>
        /// <param name="pageRows">当前页显示记录数</param>
        /// <returns></returns>
        /// 创建时间：2022-11-23 10:38:57。作者：王浩力
        Task<PageModel<Login_log>> PageLoginLog(Login_log login_log, int p, int pageRows);
    }
}
